package com.y3k.service;

import java.util.List;

import org.apache.log4j.Logger;

import com.y3k.dao.QueryDao;

public class MobileQueryService {

	public static final Logger log = Logger.getLogger(QueryService.class);

	private final QueryDao dao = new QueryDao();

	public List<Object> execute(String query) throws ServiceException {
		try {
			return dao.execute(query);
		} catch (Exception e) {
			e.printStackTrace();
			throw new ServiceException("Error ejecutando : " + query, e);
		}
	}
}